package com.hainingtong.user.dao;

import com.hainingtong.user.entity.SysPermission;
import com.hainingtong.user.entity.SysRole;
import com.hainingtong.user.entity.SysUser;
import com.hainingtong.user.entity.UserWithRolesAndPermissions;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    SysUser findById(int id);

    List<SysUser> findAll();

    int insert(SysUser user);

    List<SysRole> findRolesByUserId(int uid);
}
